<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:icefusion="http://icefusion.googlecode.com/icefusion">
<body>
<ui:composition template="#{iceFusionConsts.templatePage}">
	<ui:define name="title">
		#{icecube['application.menu.feedback.popupDialog']}
	</ui:define>
	<ui:define name="content">
		#{icecube['application.menu.feedback.popupDialog.text']}
		<ice:form>
			<ice:panelGrid>
				<ice:panelGrid columns="2">
					<ice:commandButton action="#{popupDialog.showMessage}" value="#{icecube['application.menu.feedback.popupDialog.messageDialog.button']}" />
					<ice:commandButton action="#{popupDialog.showMessageCustomHandler}" value="#{icecube['application.menu.feedback.popupDialog.messageDialog.customHandler.button']}" />
				</ice:panelGrid>
				<ice:panelGrid columns="2">
					<ice:commandButton action="#{popupDialog.showQuestion}" value="#{icecube['application.menu.feedback.popupDialog.questionDialog.button']}"/>
					<ice:commandButton action="#{popupDialog.showQuestionOtherButtons}" value="#{icecube['application.menu.feedback.popupDialog.questionDialog.otherButtons.button']}"/>
				</ice:panelGrid>
				<ice:panelGrid columns="3">
					<ice:commandButton action="#{popupDialog.showError}" value="#{icecube['application.menu.feedback.popupDialog.errorDialog.button']}" />
					<ice:commandButton action="#{popupDialog.showErrorException}" value="#{icecube['application.menu.feedback.popupDialog.errorDialog.exception.button']}" />
					<ice:commandButton action="#{popupDialog.showErrorCustomHandler}" value="#{icecube['application.menu.feedback.popupDialog.errorDialog.customHandler.button']}" />
				</ice:panelGrid>
			</ice:panelGrid>
		</ice:form>
		<ice:outputText value="#{icecube[popupDialog.buttonClickedMessage]}" />
			
		<icefusion:messageDialog title="#{icecube['application.menu.feedback.popupDialog']}" 
			text="#{icecube['application.menu.feedback.popupDialog.messageDialog.text']}"
			eventBean="#{popupDialog.messageDialogHandler}"/>
		<icefusion:questionDialog title="#{icecube['application.menu.feedback.popupDialog']}" 
			text="#{icecube[popupDialog.questionText]}" yes="#{icecube[popupDialog.yesButtonText]}" 
			no="#{icecube[popupDialog.noButtonText]}" eventBean="#{popupDialog}" />
		<icefusion:errorDialog title="#{icecube['application.menu.feedback.popupDialog']}" 
			text="#{icecube[popupDialog.errorText]}" 
			contact="Rainer Eschen, mail[at]jigetiser.com&lt;br/>&lt;a href='http://blog.rainer.eschen.name' target='_blank'>Blog&lt;/a>, &lt;a href='http://icefusion.googlecode.com' target='_blank'>ICEfusion home&lt;/a>, &lt;a href='http://www.appfuse.org' target='blank'>AppFuse home&lt;/a>"
			eventBean="#{popupDialog.errorDialogHandler}"/>
   	</ui:define>
</ui:composition>
</body>
</html>